
/**
\file
Includes the relevant headers to use OpenGL.
\author Sean Tromans
*/

#include <sun_pre_compiled.hpp>
#include <sun/gl.hpp>

namespace sun
{

	namespace detail
	{
		/**
		Helper function to enable or disable a GL state.
		@param state The state enum to set.
		@param enabled Whether the state is to be enabled or disabled.
		\author Sean Tromans
		*/
		void set_state( GLenum state, bool enabled )
		{
			if ( enabled )
			{
				glEnable( state );
			}
			else
			{
				glDisable( state );
			}
		}

	}
}
